package ru.develweb.redbookexamples;

import java.nio.FloatBuffer;
import java.nio.ShortBuffer;

import javax.microedition.khronos.opengles.GL10;

public class NewSphere {	
	private final float size = 0.5f;
	
	private float verticles[] = new float[] {
		-0.000000f * size, 1.000000f * size, 0.000000f * size,
		0.180240f * size, 0.980785f * size, 0.074658f * size,
		0.195090f * size, 0.980785f * size, 0.000001f * size,
		0.195090f * size, -0.980785f * size, -0.000001f * size,
		0.180240f * size, -0.980785f * size, 0.074657f * size,
		0.000000f * size, -1.000000f * size, -0.000001f * size,
		0.137950f * size, -0.980785f * size, 0.137949f * size,
		-0.000000f * size, 1.000000f * size, 0.000000f * size,
		0.137950f * size, 0.980785f * size, 0.137950f * size,
		0.180240f * size, 0.980785f * size, 0.074658f * size,
		0.074658f * size, 0.980785f * size, 0.180240f * size,
		0.074658f * size, -0.980785f * size, 0.180239f * size,
		-0.000000f * size, -0.980785f * size, 0.195090f * size,
		-0.000000f * size, 0.980785f * size, 0.195091f * size,
		-0.074658f * size, 0.980785f * size, 0.180240f * size,
		-0.074658f * size, -0.980785f * size, 0.180239f * size,
		-0.137950f * size, -0.980785f * size, 0.137949f * size,
		-0.137950f * size, 0.980785f * size, 0.137950f * size,
		-0.180240f * size, 0.980785f * size, 0.074658f * size,
		-0.180240f * size, -0.980785f * size, 0.074657f * size,
		-0.195090f * size, -0.980785f * size, -0.000001f * size,
		-0.195090f * size, 0.980785f * size, 0.000001f * size,
		-0.180240f * size, 0.980785f * size, -0.074657f * size,
		-0.195090f * size, 0.980785f * size, 0.000001f * size,
		-0.180240f * size, -0.980785f * size, -0.074658f * size,
		-0.137950f * size, -0.980785f * size, -0.137950f * size,
		-0.137949f * size, 0.980785f * size, -0.137949f * size,
		-0.074658f * size, 0.980785f * size, -0.180239f * size,
		-0.074658f * size, -0.980785f * size, -0.180241f * size,
		0.000000f * size, -0.980785f * size, -0.195091f * size,
		0.000000f * size, 0.980785f * size, -0.195089f * size,
		0.074658f * size, 0.980785f * size, -0.180239f * size,
		0.074658f * size, -0.980785f * size, -0.180240f * size,
		0.137950f * size, -0.980785f * size, -0.137950f * size,
		0.137949f * size, 0.980785f * size, -0.137949f * size,
		0.180240f * size, 0.980785f * size, -0.074657f * size,
		0.180240f * size, -0.980785f * size, -0.074658f * size,
		0.382683f * size, 0.923880f * size, 0.000001f * size,
		0.353553f * size, 0.923880f * size, -0.146446f * size,
		0.555570f * size, 0.831470f * size, 0.000001f * size,
		0.513280f * size, 0.831470f * size, -0.212607f * size,
		0.707106f * size, 0.707107f * size, 0.000001f * size,
		0.653281f * size, 0.707107f * size, -0.270597f * size,
		0.831469f * size, 0.555570f * size, 0.000000f * size,
		0.768178f * size, 0.555570f * size, -0.318189f * size,
		0.923879f * size, 0.382683f * size, 0.000000f * size,
		0.853553f * size, 0.382684f * size, -0.353553f * size,
		0.980785f * size, 0.195090f * size, 0.000000f * size,
		0.906127f * size, 0.195090f * size, -0.375330f * size,
		0.999999f * size, -0.000000f * size, 0.000000f * size,
		0.923879f * size, 0.000000f * size, -0.382683f * size,
		0.980785f * size, -0.195090f * size, -0.000000f * size,
		0.906127f * size, -0.195090f * size, -0.375330f * size,
		0.923879f * size, -0.382683f * size, -0.000000f * size,
		0.853553f * size, -0.382683f * size, -0.353553f * size,
		0.831469f * size, -0.555570f * size, -0.000000f * size,
		0.768178f * size, -0.555570f * size, -0.318190f * size,
		0.653281f * size, -0.707107f * size, -0.270598f * size,
		0.707106f * size, -0.707107f * size, -0.000000f * size,
		0.555570f * size, -0.831470f * size, -0.000001f * size,
		0.513280f * size, -0.831469f * size, -0.212608f * size,
		0.382683f * size, -0.923880f * size, -0.000001f * size,
		0.353553f * size, -0.923879f * size, -0.146447f * size,
		0.270598f * size, -0.923879f * size, -0.270599f * size,
		0.392847f * size, -0.831469f * size, -0.392848f * size,
		0.500000f * size, -0.707106f * size, -0.500000f * size,
		0.587938f * size, -0.555570f * size, -0.587938f * size,
		0.653281f * size, -0.382683f * size, -0.653282f * size,
		0.693520f * size, -0.195090f * size, -0.693520f * size,
		0.707106f * size, 0.000000f * size, -0.707106f * size,
		0.693520f * size, 0.195091f * size, -0.693519f * size,
		0.653281f * size, 0.382684f * size, -0.653281f * size,
		0.587938f * size, 0.555570f * size, -0.587937f * size,
		0.500000f * size, 0.707107f * size, -0.499999f * size,
		0.392847f * size, 0.831470f * size, -0.392847f * size,
		0.270598f * size, 0.923880f * size, -0.270597f * size,
		0.146446f * size, 0.923880f * size, -0.353553f * size,
		0.212607f * size, 0.831470f * size, -0.513279f * size,
		0.270598f * size, 0.707107f * size, -0.653281f * size,
		0.318190f * size, 0.555571f * size, -0.768177f * size,
		0.353553f * size, 0.382684f * size, -0.853553f * size,
		0.375330f * size, 0.195091f * size, -0.906127f * size,
		0.382683f * size, 0.000001f * size, -0.923879f * size,
		0.375330f * size, -0.195090f * size, -0.906127f * size,
		0.353553f * size, -0.382683f * size, -0.853553f * size,
		0.318190f * size, -0.555570f * size, -0.768178f * size,
		0.270598f * size, -0.707106f * size, -0.653282f * size,
		0.212608f * size, -0.831469f * size, -0.513281f * size,
		0.146447f * size, -0.923879f * size, -0.353554f * size,
		0.000000f * size, -0.923879f * size, -0.382684f * size,
		0.000000f * size, -0.831469f * size, -0.555571f * size,
		0.000000f * size, -0.707106f * size, -0.707107f * size,
		0.000000f * size, -0.555570f * size, -0.831470f * size,
		0.000000f * size, -0.382683f * size, -0.923880f * size,
		0.000000f * size, -0.195090f * size, -0.980785f * size,
		0.000000f * size, 0.000001f * size, -1.000000f * size,
		0.000000f * size, 0.195091f * size, -0.980785f * size,
		0.000000f * size, 0.382684f * size, -0.923879f * size,
		0.000000f * size, 0.555571f * size, -0.831469f * size,
		0.000000f * size, 0.707107f * size, -0.707106f * size,
		0.000000f * size, 0.831470f * size, -0.555569f * size,
		-0.000000f * size, 0.923880f * size, -0.382683f * size,
		-0.146447f * size, 0.923880f * size, -0.353553f * size,
		-0.212607f * size, 0.831470f * size, -0.513279f * size,
		-0.270598f * size, 0.707107f * size, -0.653281f * size,
		-0.318190f * size, 0.555571f * size, -0.768177f * size,
		-0.353553f * size, 0.382684f * size, -0.853553f * size,
		-0.375330f * size, 0.195091f * size, -0.906127f * size,
		-0.382683f * size, 0.000001f * size, -0.923879f * size,
		-0.375330f * size, -0.195090f * size, -0.906127f * size,
		-0.353553f * size, -0.382683f * size, -0.853553f * size,
		-0.318190f * size, -0.555570f * size, -0.768178f * size,
		-0.270598f * size, -0.707106f * size, -0.653282f * size,
		-0.212608f * size, -0.831469f * size, -0.513281f * size,
		-0.146447f * size, -0.923879f * size, -0.353554f * size,
		-0.270598f * size, -0.923879f * size, -0.270599f * size,
		-0.392847f * size, -0.831469f * size, -0.392848f * size,
		-0.500000f * size, -0.707106f * size, -0.500000f * size,
		-0.587938f * size, -0.555570f * size, -0.587938f * size,
		-0.653281f * size, -0.382683f * size, -0.653282f * size,
		-0.693520f * size, -0.195090f * size, -0.693520f * size,
		-0.707107f * size, 0.000000f * size, -0.707107f * size,
		-0.693520f * size, 0.195091f * size, -0.693520f * size,
		-0.653281f * size, 0.382684f * size, -0.653281f * size,
		-0.587938f * size, 0.555570f * size, -0.587937f * size,
		-0.500000f * size, 0.707107f * size, -0.499999f * size,
		-0.392847f * size, 0.831470f * size, -0.392847f * size,
		-0.270598f * size, 0.923880f * size, -0.270597f * size,
		-0.353553f * size, 0.923880f * size, -0.146446f * size,
		-0.513280f * size, 0.831470f * size, -0.212607f * size,
		-0.653281f * size, 0.707107f * size, -0.270598f * size,
		-0.768178f * size, 0.555570f * size, -0.318189f * size,
		-0.853553f * size, 0.382684f * size, -0.353553f * size,
		-0.906127f * size, 0.195090f * size, -0.375330f * size,
		-0.923879f * size, 0.000000f * size, -0.382683f * size,
		-0.906127f * size, -0.195090f * size, -0.375330f * size,
		-0.853553f * size, -0.382683f * size, -0.353554f * size,
		-0.768178f * size, -0.555570f * size, -0.318190f * size,
		-0.653281f * size, -0.707107f * size, -0.270598f * size,
		-0.653281f * size, -0.707107f * size, -0.270598f * size,
		-0.392847f * size, -0.831469f * size, -0.392848f * size,
		-0.513280f * size, -0.831469f * size, -0.212608f * size,
		-0.353553f * size, -0.923879f * size, -0.146447f * size,
		-0.382683f * size, -0.923880f * size, -0.000001f * size,
		-0.555570f * size, -0.831470f * size, -0.000001f * size,
		-0.707107f * size, -0.707107f * size, -0.000001f * size,
		-0.831469f * size, -0.555570f * size, -0.000000f * size,
		-0.768178f * size, -0.555570f * size, -0.318190f * size,
		-0.923879f * size, -0.382683f * size, -0.000000f * size,
		-0.853553f * size, -0.382683f * size, -0.353554f * size,
		-0.980785f * size, -0.195090f * size, -0.000000f * size,
		-0.906127f * size, -0.195090f * size, -0.375330f * size,
		-1.000000f * size, -0.000000f * size, -0.000000f * size,
		-0.923879f * size, 0.000000f * size, -0.382683f * size,
		-0.980785f * size, 0.195090f * size, 0.000000f * size,
		-0.906127f * size, 0.195090f * size, -0.375330f * size,
		-0.923879f * size, 0.382683f * size, 0.000000f * size,
		-0.853553f * size, 0.382684f * size, -0.353553f * size,
		-0.831469f * size, 0.555570f * size, 0.000000f * size,
		-0.768178f * size, 0.555570f * size, -0.318189f * size,
		-0.707107f * size, 0.707107f * size, 0.000000f * size,
		-0.653281f * size, 0.707107f * size, -0.270598f * size,
		-0.555570f * size, 0.831470f * size, 0.000001f * size,
		-0.513280f * size, 0.831470f * size, -0.212607f * size,
		-0.382683f * size, 0.923880f * size, 0.000001f * size,
		-0.353553f * size, 0.923880f * size, -0.146446f * size,
		-0.353553f * size, 0.923880f * size, 0.146447f * size,
		-0.513280f * size, 0.831470f * size, 0.212608f * size,
		-0.653281f * size, 0.707107f * size, 0.270598f * size,
		-0.768178f * size, 0.555570f * size, 0.318190f * size,
		-0.853553f * size, 0.382683f * size, 0.353554f * size,
		-0.906127f * size, 0.195090f * size, 0.375330f * size,
		-0.923879f * size, -0.000000f * size, 0.382683f * size,
		-0.906127f * size, -0.195091f * size, 0.375330f * size,
		-0.853553f * size, -0.382684f * size, 0.353553f * size,
		-0.768178f * size, -0.555570f * size, 0.318189f * size,
		-0.653281f * size, -0.707107f * size, 0.270597f * size,
		-0.513280f * size, -0.831470f * size, 0.212607f * size,
		-0.353553f * size, -0.923880f * size, 0.146446f * size,
		-0.270598f * size, -0.923880f * size, 0.270597f * size,
		-0.392847f * size, -0.831470f * size, 0.392847f * size,
		-0.500000f * size, -0.707107f * size, 0.499999f * size,
		-0.587938f * size, -0.555571f * size, 0.587937f * size,
		-0.653281f * size, -0.382684f * size, 0.653281f * size,
		-0.693520f * size, -0.195091f * size, 0.693520f * size,
		-0.707107f * size, -0.000001f * size, 0.707107f * size,
		-0.693520f * size, 0.195090f * size, 0.693520f * size,
		-0.653281f * size, 0.382683f * size, 0.653282f * size,
		-0.587938f * size, 0.555570f * size, 0.587938f * size,
		-0.500000f * size, 0.707107f * size, 0.500000f * size,
		-0.392847f * size, 0.831469f * size, 0.392848f * size,
		-0.270598f * size, 0.923879f * size, 0.270599f * size,
		-0.146447f * size, 0.923879f * size, 0.353554f * size,
		-0.212607f * size, 0.831469f * size, 0.513280f * size,
		-0.270598f * size, 0.707106f * size, 0.653282f * size,
		-0.318190f * size, 0.555570f * size, 0.768178f * size,
		-0.353553f * size, 0.382683f * size, 0.853554f * size,
		-0.375330f * size, 0.195090f * size, 0.906127f * size,
		-0.382683f * size, -0.000001f * size, 0.923879f * size,
		-0.375330f * size, -0.195091f * size, 0.906127f * size,
		-0.353553f * size, -0.382684f * size, 0.853553f * size,
		-0.318190f * size, -0.555571f * size, 0.768177f * size,
		-0.270598f * size, -0.707107f * size, 0.653281f * size,
		-0.212608f * size, -0.831470f * size, 0.513279f * size,
		-0.146447f * size, -0.923880f * size, 0.353553f * size,
		-0.000000f * size, -0.923880f * size, 0.382683f * size,
		-0.000000f * size, -0.831470f * size, 0.555570f * size,
		-0.000000f * size, -0.707107f * size, 0.707106f * size,
		-0.000000f * size, -0.555571f * size, 0.831469f * size,
		-0.000000f * size, -0.382684f * size, 0.923879f * size,
		-0.000000f * size, -0.195091f * size, 0.980785f * size,
		-0.000000f * size, -0.000001f * size, 1.000000f * size,
		-0.000000f * size, 0.195090f * size, 0.980785f * size,
		0.000000f * size, 0.382683f * size, 0.923880f * size,
		-0.000000f * size, 0.555570f * size, 0.831470f * size,
		-0.000000f * size, 0.707106f * size, 0.707107f * size,
		0.000000f * size, 0.831469f * size, 0.555571f * size,
		-0.000000f * size, 0.923879f * size, 0.382684f * size,
		0.146447f * size, 0.923879f * size, 0.353554f * size,
		0.212607f * size, 0.831469f * size, 0.513280f * size,
		0.270598f * size, 0.707106f * size, 0.653282f * size,
		0.318190f * size, 0.555570f * size, 0.768178f * size,
		0.353553f * size, 0.382683f * size, 0.853554f * size,
		0.375330f * size, 0.195090f * size, 0.906128f * size,
		0.382683f * size, -0.000001f * size, 0.923879f * size,
		0.375330f * size, -0.195091f * size, 0.906127f * size,
		0.353553f * size, -0.382684f * size, 0.853553f * size,
		0.318190f * size, -0.555571f * size, 0.768177f * size,
		0.270598f * size, -0.707107f * size, 0.653281f * size,
		0.212608f * size, -0.831470f * size, 0.513279f * size,
		0.146447f * size, -0.923880f * size, 0.353553f * size,
		0.270598f * size, -0.923880f * size, 0.270597f * size,
		0.392847f * size, -0.831470f * size, 0.392847f * size,
		0.500000f * size, -0.707107f * size, 0.500000f * size,
		0.587938f * size, -0.555571f * size, 0.587937f * size,
		0.653281f * size, -0.382684f * size, 0.653281f * size,
		0.693520f * size, -0.195091f * size, 0.693520f * size,
		0.707107f * size, -0.000001f * size, 0.707107f * size,
		0.693520f * size, 0.195090f * size, 0.693520f * size,
		0.653282f * size, 0.382683f * size, 0.653282f * size,
		0.587938f * size, 0.555570f * size, 0.587938f * size,
		0.500000f * size, 0.707107f * size, 0.500000f * size,
		0.392847f * size, 0.831469f * size, 0.392848f * size,
		0.270598f * size, 0.923879f * size, 0.270599f * size,
		0.353553f * size, 0.923880f * size, 0.146447f * size,
		0.513280f * size, 0.831470f * size, 0.212608f * size,
		0.653281f * size, 0.707107f * size, 0.270599f * size,
		0.768178f * size, 0.555570f * size, 0.318190f * size,
		0.853553f * size, 0.382683f * size, 0.353554f * size,
		0.906127f * size, 0.195090f * size, 0.375330f * size,
		0.923880f * size, -0.000000f * size, 0.382683f * size,
		0.906127f * size, -0.195091f * size, 0.375330f * size,
		0.853553f * size, -0.382684f * size, 0.353553f * size,
		0.768178f * size, -0.555570f * size, 0.318189f * size,
		0.653281f * size, -0.707107f * size, 0.270598f * size,
		0.513280f * size, -0.831470f * size, 0.212607f * size,
		0.353553f * size, -0.923880f * size, 0.146446f * size,
		0.353553f * size, 0.923880f * size, 0.146447f * size
	};
	
	private float normals[] = new float[] {
			0.000000f, 1.000000f, 0.000000f,
			0.209815f, 0.973846f, 0.086886f,
			0.195013f, 0.980773f, 0.000000f,
			0.214270f, -0.976684f, -0.011567f,
			0.202399f, -0.976684f, 0.071291f,
			0.000000f, -1.000000f, 0.000000f,
			0.159703f, -0.976684f, 0.143315f,
			0.000000f, 1.000000f, 0.000000f,
			0.143315f, 0.976684f, 0.159703f,
			0.209815f, 0.973846f, 0.086886f,
			0.071291f, 0.976684f, 0.202399f,
			0.092715f, -0.976684f, 0.193518f,
			0.011567f, -0.976684f, 0.214270f,
			-0.011567f, 0.976684f, 0.214270f,
			-0.092715f, 0.976684f, 0.193518f,
			-0.071291f, -0.976684f, 0.202399f,
			-0.143315f, -0.976684f, 0.159703f,
			-0.159703f, 0.976684f, 0.143315f,
			-0.202399f, 0.976684f, 0.071291f,
			-0.193518f, -0.976684f, 0.092685f,
			-0.214270f, -0.976684f, 0.011567f,
			-0.214270f, 0.976684f, -0.011567f,
			-0.193518f, 0.976684f, -0.092685f,
			-0.214270f, 0.976684f, -0.011567f,
			-0.202399f, -0.976684f, -0.071291f,
			-0.159703f, -0.976684f, -0.143315f,
			-0.143315f, 0.976684f, -0.159703f,
			-0.071291f, 0.976684f, -0.202399f,
			-0.092715f, -0.976684f, -0.193518f,
			-0.011567f, -0.976684f, -0.214270f,
			0.011567f, 0.976684f, -0.214270f,
			0.092715f, 0.976684f, -0.193518f,
			0.071291f, -0.976684f, -0.202399f,
			0.143315f, -0.976684f, -0.159703f,
			0.159703f, 0.976684f, -0.143315f,
			0.202399f, 0.976684f, -0.071291f,
			0.193518f, -0.976684f, -0.092715f,
			0.352031f, 0.935972f, 0.000000f,
			0.355724f, 0.923887f, -0.140843f,
			0.527848f, 0.849330f, 0.000000f,
			0.515183f, 0.831538f, -0.207587f,
			0.696768f, 0.716910f, 0.022004f,
			0.654866f, 0.707205f, -0.266335f,
			0.819880f, 0.571673f, -0.030915f,
			0.769433f, 0.555681f, -0.314859f,
			0.910764f, 0.412885f, 0.000000f,
			0.854427f, 0.382794f, -0.351299f,
			0.977508f, 0.208838f, 0.028352f,
			0.906583f, 0.195135f, -0.374187f,
			1.000000f, 0.000000f, 0.000000f,
			0.923856f, 0.000000f, -0.382672f,
			0.980743f, -0.195135f, -0.001221f,
			0.905637f, -0.195135f, -0.376446f,
			0.923826f, -0.382794f, -0.002411f,
			0.852565f, -0.382794f, -0.355754f,
			0.823206f, -0.567156f, -0.025117f,
			0.764092f, -0.538865f, -0.354564f,
			0.669118f, -0.697104f, -0.257515f,
			0.692679f, -0.720786f, 0.025361f,
			0.555406f, -0.831538f, -0.005341f,
			0.511063f, -0.831538f, -0.217505f,
			0.382550f, -0.923887f, -0.005982f,
			0.351115f, -0.923887f, -0.151921f,
			0.266243f, -0.923887f, -0.274728f,
			0.388928f, -0.831538f, -0.396527f,
			0.496689f, -0.707205f, -0.503098f,
			0.585345f, -0.555681f, -0.590350f,
			0.651509f, -0.382794f, -0.654927f,
			0.692618f, -0.195135f, -0.694357f,
			0.707083f, 0.000000f, -0.707083f,
			0.694357f, 0.195135f, -0.692618f,
			0.654927f, 0.382794f, -0.651509f,
			0.590350f, 0.555681f, -0.585345f,
			0.503098f, 0.707205f, -0.496689f,
			0.396527f, 0.831538f, -0.388928f,
			0.274728f, 0.923887f, -0.266243f,
			0.151921f, 0.923887f, -0.351115f,
			0.217505f, 0.831538f, -0.511063f,
			0.274728f, 0.707205f, -0.651418f,
			0.321390f, 0.555681f, -0.766717f,
			0.355754f, 0.382794f, -0.852565f,
			0.376446f, 0.195135f, -0.905637f,
			0.382672f, 0.000000f, -0.923856f,
			0.374187f, -0.195135f, -0.906583f,
			0.351299f, -0.382794f, -0.854427f,
			0.291818f, -0.567156f, -0.770165f,
			0.288522f, -0.720786f, -0.630238f,
			0.207587f, -0.831538f, -0.515183f,
			0.140843f, -0.923887f, -0.355724f,
			-0.005982f, -0.923887f, -0.382550f,
			-0.005341f, -0.831538f, -0.555406f,
			0.046815f, -0.706442f, -0.706198f,
			-0.055025f, -0.554857f, -0.830103f,
			-0.002411f, -0.382794f, -0.923826f,
			-0.001221f, -0.195135f, -0.980743f,
			0.000000f, 0.000000f, -1.000000f,
			0.001221f, 0.195135f, -0.980743f,
			0.002411f, 0.382794f, -0.923826f,
			0.003510f, 0.555681f, -0.831355f,
			0.004517f, 0.707205f, -0.706961f,
			0.005341f, 0.831538f, -0.555406f,
			0.005982f, 0.923887f, -0.382550f,
			-0.140843f, 0.923887f, -0.355724f,
			-0.207587f, 0.831538f, -0.515183f,
			-0.266335f, 0.707205f, -0.654866f,
			-0.314859f, 0.555681f, -0.769433f,
			-0.351299f, 0.382794f, -0.854427f,
			-0.374187f, 0.195135f, -0.906583f,
			-0.382672f, 0.000000f, -0.923856f,
			-0.376446f, -0.195135f, -0.905637f,
			-0.355754f, -0.382794f, -0.852565f,
			-0.368511f, -0.554857f, -0.745842f,
			-0.226966f, -0.706442f, -0.670339f,
			-0.217505f, -0.831538f, -0.511063f,
			-0.151921f, -0.923887f, -0.351115f,
			-0.249336f, -0.931211f, -0.265786f,
			-0.397137f, -0.839137f, -0.371593f,
			-0.466231f, -0.706442f, -0.532456f,
			-0.625874f, -0.554857f, -0.548051f,
			-0.654927f, -0.382794f, -0.651509f,
			-0.694357f, -0.195135f, -0.692618f,
			-0.707083f, 0.000000f, -0.707083f,
			-0.692618f, 0.195135f, -0.694357f,
			-0.651509f, 0.382794f, -0.654927f,
			-0.585345f, 0.555681f, -0.590350f,
			-0.496689f, 0.707205f, -0.503098f,
			-0.388928f, 0.831538f, -0.396527f,
			-0.266243f, 0.923887f, -0.274728f,
			-0.351115f, 0.923887f, -0.151921f,
			-0.511063f, 0.831538f, -0.217475f,
			-0.651418f, 0.707205f, -0.274728f,
			-0.766717f, 0.555681f, -0.321390f,
			-0.867763f, 0.369640f, -0.332133f,
			-0.893551f, 0.175634f, -0.413099f,
			-0.923856f, 0.000000f, -0.382672f,
			-0.906583f, -0.195135f, -0.374187f,
			-0.854427f, -0.382794f, -0.351299f,
			-0.787988f, -0.554857f, -0.266793f,
			-0.634510f, -0.706442f, -0.313486f,
			-0.634510f, -0.706442f, -0.313486f,
			-0.397137f, -0.839137f, -0.371593f,
			-0.537675f, -0.820185f, -0.195318f,
			-0.362224f, -0.918424f, -0.159001f,
			-0.382550f, -0.923887f, 0.005982f,
			-0.555406f, -0.831538f, 0.005341f,
			-0.716727f, -0.697104f, -0.018128f,
			-0.841639f, -0.538865f, 0.035157f,
			-0.787988f, -0.554857f, -0.266793f,
			-0.923826f, -0.382794f, 0.002411f,
			-0.854427f, -0.382794f, -0.351299f,
			-0.980743f, -0.195135f, 0.001221f,
			-0.906583f, -0.195135f, -0.374187f,
			-1.000000f, 0.000000f, 0.000000f,
			-0.923856f, 0.000000f, -0.382672f,
			-0.978698f, 0.194739f, -0.064882f,
			-0.893551f, 0.175634f, -0.413099f,
			-0.922086f, 0.382061f, 0.061129f,
			-0.867763f, 0.369640f, -0.332133f,
			-0.831355f, 0.555681f, -0.003510f,
			-0.766717f, 0.555681f, -0.321390f,
			-0.706961f, 0.707205f, -0.004517f,
			-0.651418f, 0.707205f, -0.274728f,
			-0.555406f, 0.831538f, -0.005341f,
			-0.511063f, 0.831538f, -0.217475f,
			-0.382550f, 0.923887f, -0.005982f,
			-0.351115f, 0.923887f, -0.151921f,
			-0.355724f, 0.923887f, 0.140843f,
			-0.515183f, 0.831538f, 0.207587f,
			-0.654866f, 0.707205f, 0.266335f,
			-0.769433f, 0.555681f, 0.314859f,
			-0.828486f, 0.382061f, 0.409345f,
			-0.929014f, 0.194739f, 0.314554f,
			-0.923856f, 0.000000f, 0.382672f,
			-0.905637f, -0.195135f, 0.376446f,
			-0.852565f, -0.382794f, 0.355754f,
			-0.766717f, -0.555681f, 0.321390f,
			-0.651418f, -0.707205f, 0.274728f,
			-0.511063f, -0.831538f, 0.217475f,
			-0.351115f, -0.923887f, 0.151921f,
			-0.266243f, -0.923887f, 0.274728f,
			-0.388928f, -0.831538f, 0.396527f,
			-0.507736f, -0.720786f, 0.471847f,
			-0.564318f, -0.567156f, 0.599841f,
			-0.651509f, -0.382794f, 0.654927f,
			-0.692618f, -0.195135f, 0.694357f,
			-0.707083f, 0.000000f, 0.707083f,
			-0.737907f, 0.194739f, 0.646138f,
			-0.608783f, 0.382061f, 0.695242f,
			-0.590350f, 0.555681f, 0.585345f,
			-0.503098f, 0.707205f, 0.496689f,
			-0.396527f, 0.831538f, 0.388928f,
			-0.274728f, 0.923887f, 0.266243f,
			-0.151921f, 0.923887f, 0.351115f,
			-0.217505f, 0.831538f, 0.511063f,
			-0.274728f, 0.707205f, 0.651418f,
			-0.321390f, 0.555681f, 0.766717f,
			-0.317759f, 0.400647f, 0.859340f,
			-0.400281f, 0.208838f, 0.892239f,
			-0.382672f, 0.000000f, 0.923856f,
			-0.374187f, -0.195135f, 0.906583f,
			-0.351299f, -0.382794f, 0.854427f,
			-0.289560f, -0.538865f, 0.791009f,
			-0.291025f, -0.697104f, 0.655232f,
			-0.207587f, -0.831538f, 0.515183f,
			-0.140843f, -0.923887f, 0.355724f,
			0.005982f, -0.923887f, 0.382550f,
			0.005341f, -0.831538f, 0.555406f,
			0.004517f, -0.707205f, 0.706961f,
			0.003510f, -0.555681f, 0.831355f,
			0.002411f, -0.382794f, 0.923826f,
			0.001221f, -0.195135f, 0.980743f,
			0.000000f, 0.000000f, 1.000000f,
			-0.001221f, 0.195135f, 0.980743f,
			-0.002411f, 0.382794f, 0.923826f,
			-0.003510f, 0.555681f, 0.831355f,
			-0.004517f, 0.707205f, 0.706961f,
			-0.005341f, 0.831538f, 0.555406f,
			-0.005982f, 0.923887f, 0.382550f,
			0.140843f, 0.923887f, 0.355724f,
			0.207587f, 0.831538f, 0.515183f,
			0.266335f, 0.707205f, 0.654866f,
			0.314859f, 0.555681f, 0.769433f,
			0.351299f, 0.382794f, 0.854427f,
			0.374187f, 0.195135f, 0.906583f,
			0.382672f, 0.000000f, 0.923856f,
			0.376446f, -0.195135f, 0.905637f,
			0.355754f, -0.382794f, 0.852565f,
			0.321390f, -0.555681f, 0.766717f,
			0.274728f, -0.707205f, 0.651418f,
			0.217505f, -0.831538f, 0.511063f,
			0.151921f, -0.923887f, 0.351115f,
			0.274728f, -0.923887f, 0.266243f,
			0.396527f, -0.831538f, 0.388928f,
			0.503098f, -0.707205f, 0.496689f,
			0.590350f, -0.555681f, 0.585345f,
			0.654927f, -0.382794f, 0.651509f,
			0.694357f, -0.195135f, 0.692618f,
			0.707083f, 0.000000f, 0.707083f,
			0.692618f, 0.195135f, 0.694357f,
			0.651509f, 0.382794f, 0.654927f,
			0.585345f, 0.555681f, 0.590350f,
			0.496689f, 0.707205f, 0.503098f,
			0.388928f, 0.831538f, 0.396527f,
			0.266243f, 0.923887f, 0.274728f,
			0.381268f, 0.910855f, 0.157903f,
			0.538072f, 0.812860f, 0.222877f,
			0.653768f, 0.692831f, 0.304178f,
			0.783502f, 0.543809f, 0.300607f,
			0.864650f, 0.352245f, 0.358135f,
			0.893551f, 0.175634f, 0.413099f,
			0.923856f, 0.000000f, 0.382672f,
			0.906583f, -0.195135f, 0.374187f,
			0.854427f, -0.382794f, 0.351299f,
			0.769433f, -0.555681f, 0.314859f,
			0.654866f, -0.707205f, 0.266335f,
			0.515183f, -0.831538f, 0.207587f,
			0.355724f, -0.923887f, 0.140843f,
			0.381268f, 0.910855f, 0.157903f
	};
	
	private short indices[] = new short[] {
			0, 1, 2,
			3, 4, 5,
			4, 6, 5,
			7, 8, 9,
			7, 10, 8,
			6, 11, 5,
			11, 12, 5,
			7, 13, 10,
			7, 14, 13,
			12, 15, 5,
			15, 16, 5,
			7, 17, 14,
			7, 18, 17,
			16, 19, 5,
			19, 20, 5,
			7, 21, 18,
			0, 22, 23,
			20, 24, 5,
			24, 25, 5,
			0, 26, 22,
			0, 27, 26,
			25, 28, 5,
			28, 29, 5,
			0, 30, 27,
			0, 31, 30,
			29, 32, 5,
			32, 33, 5,
			0, 34, 31,
			0, 35, 34,
			33, 36, 5,
			36, 3, 5,
			0, 2, 35,
			35, 2, 37,
			35, 37, 38,
			38, 37, 39,
			38, 39, 40,
			40, 39, 41,
			40, 41, 42,
			42, 41, 43,
			42, 43, 44,
			44, 43, 45,
			44, 45, 46,
			46, 45, 47,
			46, 47, 48,
			48, 47, 49,
			48, 49, 50,
			50, 49, 51,
			50, 51, 52,
			52, 51, 53,
			52, 53, 54,
			54, 53, 55,
			54, 55, 56,
			56, 55, 57,
			55, 58, 57,
			57, 58, 59,
			57, 59, 60,
			60, 59, 61,
			60, 61, 62,
			3, 36, 62,
			3, 62, 61,
			63, 62, 36,
			63, 36, 33,
			64, 60, 62,
			64, 62, 63,
			65, 57, 60,
			65, 60, 64,
			66, 56, 57,
			66, 57, 65,
			67, 54, 56,
			67, 56, 66,
			68, 52, 54,
			68, 54, 67,
			69, 50, 52,
			69, 52, 68,
			70, 48, 50,
			70, 50, 69,
			71, 46, 48,
			71, 48, 70,
			72, 44, 46,
			72, 46, 71,
			73, 42, 44,
			73, 44, 72,
			74, 40, 42,
			74, 42, 73,
			75, 38, 40,
			75, 40, 74,
			34, 35, 38,
			34, 38, 75,
			31, 34, 75,
			31, 75, 76,
			76, 75, 74,
			76, 74, 77,
			77, 74, 73,
			77, 73, 78,
			78, 73, 72,
			78, 72, 79,
			79, 72, 71,
			79, 71, 80,
			80, 71, 70,
			80, 70, 81,
			81, 70, 69,
			81, 69, 82,
			82, 69, 68,
			82, 68, 83,
			83, 68, 67,
			83, 67, 84,
			84, 67, 66,
			84, 66, 85,
			85, 66, 65,
			85, 65, 86,
			86, 65, 64,
			86, 64, 87,
			87, 64, 63,
			87, 63, 88,
			88, 63, 33,
			88, 33, 32,
			89, 88, 32,
			89, 32, 29,
			90, 87, 88,
			90, 88, 89,
			91, 86, 87,
			91, 87, 90,
			92, 85, 91,
			85, 86, 91,
			93, 84, 85,
			93, 85, 92,
			94, 83, 84,
			94, 84, 93,
			95, 82, 83,
			95, 83, 94,
			96, 81, 82,
			96, 82, 95,
			97, 80, 81,
			97, 81, 96,
			98, 79, 80,
			98, 80, 97,
			99, 78, 79,
			99, 79, 98,
			100, 77, 78,
			100, 78, 99,
			101, 76, 77,
			101, 77, 100,
			30, 31, 76,
			30, 76, 101,
			27, 30, 101,
			27, 101, 102,
			102, 101, 100,
			102, 100, 103,
			103, 100, 99,
			103, 99, 104,
			104, 99, 98,
			104, 98, 105,
			105, 98, 97,
			105, 97, 106,
			106, 97, 96,
			106, 96, 107,
			107, 96, 95,
			107, 95, 108,
			108, 95, 94,
			108, 94, 109,
			109, 94, 93,
			109, 93, 110,
			110, 93, 92,
			110, 92, 111,
			111, 92, 112,
			92, 91, 112,
			112, 91, 90,
			112, 90, 113,
			113, 90, 89,
			113, 89, 114,
			114, 89, 29,
			114, 29, 28,
			115, 114, 28,
			115, 28, 25,
			116, 113, 114,
			116, 114, 115,
			117, 112, 113,
			117, 113, 116,
			118, 111, 117,
			111, 112, 117,
			119, 110, 111,
			119, 111, 118,
			120, 109, 110,
			120, 110, 119,
			121, 108, 109,
			121, 109, 120,
			122, 107, 108,
			122, 108, 121,
			123, 106, 107,
			123, 107, 122,
			124, 105, 106,
			124, 106, 123,
			125, 104, 105,
			125, 105, 124,
			126, 103, 104,
			126, 104, 125,
			127, 102, 103,
			127, 103, 126,
			26, 27, 102,
			26, 102, 127,
			22, 26, 127,
			22, 127, 128,
			128, 127, 126,
			128, 126, 129,
			129, 126, 125,
			129, 125, 130,
			130, 125, 124,
			130, 124, 131,
			131, 124, 123,
			131, 123, 132,
			132, 123, 122,
			132, 122, 133,
			133, 122, 121,
			133, 121, 134,
			134, 121, 120,
			134, 120, 135,
			135, 120, 119,
			135, 119, 136,
			136, 119, 118,
			136, 118, 137,
			137, 118, 138,
			118, 117, 138,
			138, 117, 116,
			139, 140, 141,
			141, 140, 142,
			116, 115, 142,
			142, 115, 25,
			142, 25, 24,
			143, 142, 24,
			143, 24, 20,
			144, 141, 142,
			144, 142, 143,
			145, 139, 141,
			145, 141, 144,
			146, 147, 145,
			147, 139, 145,
			148, 149, 147,
			148, 147, 146,
			150, 151, 149,
			150, 149, 148,
			152, 153, 151,
			152, 151, 150,
			154, 155, 153,
			154, 153, 152,
			156, 157, 154,
			157, 155, 154,
			158, 159, 157,
			158, 157, 156,
			160, 161, 159,
			160, 159, 158,
			162, 163, 161,
			162, 161, 160,
			164, 165, 163,
			164, 163, 162,
			23, 22, 128,
			21, 165, 164,
			18, 21, 164,
			18, 164, 166,
			166, 164, 162,
			166, 162, 167,
			167, 162, 160,
			167, 160, 168,
			168, 160, 158,
			168, 158, 169,
			169, 158, 156,
			169, 156, 170,
			170, 156, 171,
			156, 154, 171,
			171, 154, 152,
			171, 152, 172,
			172, 152, 150,
			172, 150, 173,
			173, 150, 148,
			173, 148, 174,
			174, 148, 146,
			174, 146, 175,
			175, 146, 145,
			175, 145, 176,
			176, 145, 144,
			176, 144, 177,
			177, 144, 143,
			177, 143, 178,
			178, 143, 20,
			178, 20, 19,
			179, 178, 19,
			179, 19, 16,
			180, 177, 178,
			180, 178, 179,
			181, 176, 177,
			181, 177, 180,
			182, 175, 176,
			182, 176, 181,
			183, 174, 175,
			183, 175, 182,
			184, 173, 174,
			184, 174, 183,
			185, 172, 173,
			185, 173, 184,
			186, 171, 172,
			186, 172, 185,
			187, 170, 186,
			170, 171, 186,
			188, 169, 170,
			188, 170, 187,
			189, 168, 169,
			189, 169, 188,
			190, 167, 168,
			190, 168, 189,
			191, 166, 167,
			191, 167, 190,
			17, 18, 166,
			17, 166, 191,
			14, 17, 191,
			14, 191, 192,
			192, 191, 190,
			192, 190, 193,
			193, 190, 189,
			193, 189, 194,
			194, 189, 188,
			194, 188, 195,
			195, 188, 187,
			195, 187, 196,
			196, 187, 197,
			187, 186, 197,
			197, 186, 185,
			197, 185, 198,
			198, 185, 184,
			198, 184, 199,
			199, 184, 183,
			199, 183, 200,
			200, 183, 182,
			200, 182, 201,
			201, 182, 202,
			182, 181, 202,
			202, 181, 180,
			202, 180, 203,
			203, 180, 179,
			203, 179, 204,
			204, 179, 16,
			204, 16, 15,
			205, 204, 15,
			205, 15, 12,
			206, 203, 204,
			206, 204, 205,
			207, 202, 203,
			207, 203, 206,
			208, 201, 202,
			208, 202, 207,
			209, 200, 201,
			209, 201, 208,
			210, 199, 200,
			210, 200, 209,
			211, 198, 199,
			211, 199, 210,
			212, 197, 198,
			212, 198, 211,
			213, 196, 197,
			213, 197, 212,
			214, 195, 196,
			214, 196, 213,
			215, 194, 195,
			215, 195, 214,
			216, 193, 194,
			216, 194, 215,
			217, 192, 193,
			217, 193, 216,
			13, 14, 192,
			13, 192, 217,
			10, 13, 217,
			10, 217, 218,
			218, 217, 216,
			218, 216, 219,
			219, 216, 215,
			219, 215, 220,
			220, 215, 214,
			220, 214, 221,
			221, 214, 213,
			221, 213, 222,
			222, 213, 212,
			222, 212, 223,
			223, 212, 211,
			223, 211, 224,
			224, 211, 210,
			224, 210, 225,
			225, 210, 209,
			225, 209, 226,
			226, 209, 208,
			226, 208, 227,
			227, 208, 207,
			227, 207, 228,
			228, 207, 206,
			228, 206, 229,
			229, 206, 205,
			229, 205, 230,
			230, 205, 12,
			230, 12, 11,
			231, 230, 11,
			231, 11, 6,
			232, 229, 230,
			232, 230, 231,
			233, 228, 229,
			233, 229, 232,
			234, 227, 228,
			234, 228, 233,
			235, 226, 227,
			235, 227, 234,
			236, 225, 226,
			236, 226, 235,
			237, 224, 225,
			237, 225, 236,
			238, 223, 224,
			238, 224, 237,
			239, 222, 223,
			239, 223, 238,
			240, 221, 222,
			240, 222, 239,
			241, 220, 221,
			241, 221, 240,
			242, 219, 220,
			242, 220, 241,
			243, 218, 219,
			243, 219, 242,
			8, 10, 218,
			8, 218, 243,
			9, 8, 243,
			9, 243, 244,
			244, 243, 242,
			244, 242, 245,
			245, 242, 241,
			245, 241, 246,
			246, 241, 240,
			246, 240, 247,
			247, 240, 239,
			247, 239, 248,
			248, 239, 238,
			248, 238, 249,
			249, 238, 237,
			249, 237, 250,
			250, 237, 236,
			250, 236, 251,
			251, 236, 235,
			251, 235, 252,
			252, 235, 234,
			252, 234, 253,
			253, 234, 233,
			253, 233, 254,
			254, 233, 232,
			254, 232, 255,
			255, 232, 231,
			255, 231, 256,
			256, 231, 6,
			256, 6, 4,
			4, 3, 61,
			4, 61, 256,
			59, 255, 256,
			59, 256, 61,
			58, 254, 255,
			58, 255, 59,
			55, 253, 254,
			55, 254, 58,
			53, 252, 253,
			53, 253, 55,
			51, 251, 252,
			51, 252, 53,
			49, 250, 251,
			49, 251, 51,
			47, 249, 250,
			47, 250, 49,
			45, 248, 47,
			248, 249, 47,
			43, 247, 45,
			247, 248, 45,
			41, 246, 247,
			41, 247, 43,
			39, 245, 41,
			245, 246, 41,
			37, 257, 39,
			257, 245, 39,
			2, 1, 37,
			1, 257, 37,
	
	};
	
	private FloatBuffer vertexBfr;
	private FloatBuffer normalBfr;
	private ShortBuffer indicesBfr;
	
	public NewSphere() {
		Build();
	}	
	
	public void Build() {
		vertexBfr = GlRenderer.makeFloatBuffer(verticles);
		normalBfr = GlRenderer.makeFloatBuffer(normals);
		indicesBfr = GlRenderer.makeShortBuffer(indices);
	}
	
	public void Draw (GL10 gl) {
		gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
		gl.glEnableClientState(GL10.GL_NORMAL_ARRAY);		
	        
	    gl.glNormalPointer(GL10.GL_FLOAT, 0, normalBfr);
	    gl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBfr);	    
	    
	    //gl.glDrawArrays(GL10.GL_TRIANGLES, 0, vCount);
	    gl.glDrawElements(GL10.GL_TRIANGLES, indices.length, GL10.GL_UNSIGNED_SHORT, indicesBfr);
	    gl.glDisableClientState(GL10.GL_NORMAL_ARRAY);
	    gl.glDisableClientState(GL10.GL_VERTEX_ARRAY);
	}
}